Retrieve all knowledge bases in your organization with document counts and metadata.
Query Parameters
Page number (starting from 1)
Items per page (maximum 50)
Response
Array of knowledge base objectsShow Knowledge Base Object
Unique identifier for the knowledge base (UUID format)
Display name of the knowledge base
Description of the knowledge base content (nullable)
Knowledge base type: managed
Organization UUID this knowledge base belongs to
Associated agent ID (nullable)
Number of documents in this knowledge base
Total number of knowledge bases
Total number of pages available
Example Request
curl -X GET -H "x-api-key: YOUR_API_KEY" \
"https://api.xpander.ai/v1/knowledge?page=1&per_page=5"
Example Response
{
"items": [
{
"id": "73dc30ca-bdbf-42f7-a39f-93aff4f8522e",
"name": "PeopleDB",
"description": "Dataset contains data about people and their phone number",
"type": "managed",
"organization_id": "91fbe9bc-REDACTED",
"agent_id": null,
"total_documents": 0
},
{
"id": "e21563bd-7c02-4f8f-9520-8c854f5c2ee6",
"name": "Docs",
"description": "Docs",
"type": "managed",
"organization_id": "91fbe9bc-REDACTED",
"agent_id": null,
"total_documents": 278
},
{
"id": "27a824b5-3a31-461b-951d-81261da3217b",
"name": "Spreadsheets",
"description": "Spreadsheets",
"type": "managed",
"organization_id": "91fbe9bc-REDACTED",
"agent_id": null,
"total_documents": 2
}
],
"total": 32,
"page": 1,
"per_page": 5,
"total_pages": 7
}
API Key for authentication
Page number (starting from 1)
Required range: x >= 1
Required range: 1 <= x <= 50
items
KnowledgeBaseItem · object[]
required